<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>File Details</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .file-header {
            margin-bottom: 2rem;
        }
        .file-meta {
            color: #6c757d;
            margin-bottom: 1rem;
        }
        .file-content {
            background-color: #f8f9fa;
            padding: 1.5rem;
            border-radius: 0.25rem;
            font-family: monospace;
            white-space: pre-wrap;
            max-height: 500px;
            overflow-y: auto;
        }
        .file-actions {
            margin-top: 1rem;
        }
        .related-files {
            margin-top: 2rem;
        }
    </style>
</head>
<body>
    <div class="container mt-4">
        <div class="row">
            <div class="col-md-8">
                <div class="file-header">
                    <h1>{{title}}</h1>
                    <div class="file-meta">
                        <span>Created: January 1, 2023</span> |
                        <span>Modified: January 15, 2023</span> |
                        <span>Size: 2.4 KB</span>
                    </div>
                </div>

                <div class="file-content">
                    {{article}}
                </div>

                <div class="file-actions">
                    <button class="btn btn-primary">Download</button>
                    <button class="btn btn-secondary">Edit</button>
                    <button class="btn btn-outline-danger">Delete</button>
                </div>
            </div>

            <div class="col-md-4">
                <div class="card">
                    <div class="card-header">
                        File Information
                    </div>
                    <div class="card-body">
                        <table class="table table-sm">
                            <tr>
                                <td>Type</td>
                                <td>Text Document</td>
                            </tr>
                            <tr>
                                <td>Extension</td>
                                <td>.txt</td>
                            </tr>
                            <tr>
                                <td>Owner</td>
                                <td>John Doe</td>
                            </tr>
                            <tr>
                                <td>Permissions</td>
                                <td>Read/Write</td>
                            </tr>
                        </table>
                    </div>
                </div>

                <div class="related-files mt-4">
                    <h4>Related Files</h4>
                    <ul class="list-group">
                        <li class="list-group-item d-flex justify-content-between align-items-center">
                            <a href="#">example_backup.txt</a>
                            <span class="badge bg-secondary">Backup</span>
                        </li>
                        <li class="list-group-item d-flex justify-content-between align-items-center">
                            <a href="#">example_v2.txt</a>
                            <span class="badge bg-info">Version 2</span>
                        </li>
                        <li class="list-group-item d-flex justify-content-between align-items-center">
                            <a href="#">example_draft.txt</a>
                            <span class="badge bg-warning">Draft</span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
